import request from '@/utils/request'
// 获取路由
export function allVolunteerList(query)  {
  return request({
    url: 'system/volunteer/list',
    method: 'get',
    params: query
  })
}

// 删除用户
export function deleteVolunteer(userId) {
  return request({
    url: '/system/volunteer/' + userId,
    method: 'delete'
  })
}
export function addVolunteer (data)  {
  return request({
    url: 'system/volunteer/addVolunteer',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateVolunteer(data) {
  return request({
    url: '/system/volunteer',
    method: 'put',
    data: data
  })
}
